home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / bash_114.zip / bash-1.14.2 / stdc.h < prev    next >
C/C++ Source or Header  |  1994-04-07  |  2KB  |  65 lines

  1. /* stdc.h -- macros to make source compile on both ANSI C and K&R C
  2.    compilers. */
  3.  
  4. /* Copyright (C) 1993 Free Software Foundation, Inc.
  5.  
  6.    This file is part of GNU Bash, the Bourne Again SHell.
  7.  
  8.    Bash is free software; you can redistribute it and/or modify it
  9.    under the terms of the GNU General Public License as published by
  10.    the Free Software Foundation; either version 1, or (at your option)
  11.    any later version.
  12.  
  13.    Bash is distributed in the hope that it will be useful, but WITHOUT
  14.    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  15.    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  16.    License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with Bash; see the file COPYING.  If not, write to the Free
  20.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  21.  
  22. #if !defined (__STDC_H__)
  23. #define __STDC_H__
  24.  
  25. /* Adapted from BSD /usr/include/sys/cdefs.h. */
  26.  
  27. /* A function can be defined using prototypes and compile on both ANSI C
  28.    and traditional C compilers with something like this:
  29.     extern char *func __P((char *, char *, int)); */
  30. #if defined (__STDC__)
  31.  
  32. #  if !defined (__P)
  33. #    define __P(protos) protos
  34. #  endif
  35. #  define __STRING(x) #x
  36.  
  37. #  if !defined (__GNUC__)
  38. #    define inline
  39. #  endif
  40.  
  41. #else /* !__STDC__ */
  42.  
  43. #  if !defined (__P)
  44. #    define __P(protos) ()
  45. #  endif
  46. #  define __STRING(x) "x"
  47.  
  48. #if !defined (const)
  49. #  if defined (__GNUC__)        /* gcc with -traditional */
  50. #    define const  __const
  51. #    define inline __inline
  52. #    define signed __signed
  53. #    define volatile __volatile
  54. #  else /* !__GNUC__ */
  55. #    define const
  56. #    define inline
  57. #    define signed
  58. #    define volatile
  59. #  endif /* !__GNUC__ */
  60. #endif /* !const */
  61.  
  62. #endif /* !__STDC__ */
  63.  
  64. #endif /* !__STDC_H__ */
  65.